package org.keeners.imageviewer.util {
	
	import flash.text.*;
	
	public class Text{
		
		public function Text(){
		
		}
		
		public function get_textfield(format:TextFormat){
			var tf_format:TextFormat = format;
			var textfield:TextField = new TextField();
			textfield.autoSize = TextFieldAutoSize.LEFT;
			textfield.defaultTextFormat = format;
			textfield.embedFonts = false;
			textfield.antiAliasType = AntiAliasType.ADVANCED;
			textfield.selectable = false;

			return textfield;
		}
		
		public function get_device_textformat(c:uint=0xff0000,s:Number=16){			
			//var eurotbla:Font = new EuroTBla();
			var format:TextFormat = new TextFormat();
			//format.font = eurotbla.fontName;
			format.font = "_sans";
			format.bold = true;
			format.letterSpacing = .6;
			format.size = s; 
			format.color = c;
			//eurotbla_format.align = 'center';
			return format;	 
			
		}
		
		public function get_standard_quickfield(c:uint=0xff0000,s:Number=16){			
			var f = get_device_textformat(c,s)
			return get_textfield(f);   
			
		}
		
		
	}
}
